package com.kim.nidoya.net.business;

import com.kim.net.NetEntity;
import com.kim.net.impl.NetProcessProxy;
import com.kim.net.impl.NetProcessProxy.NetRequestType;
import com.kim.nidoya.net.business.NetCallbackImplBase.Notify;

public abstract class BusinessBase implements BusinessInterface {

	NetEntity netEntity;
	Notify notify;

	public BusinessBase(Notify notify) {
		this.notify = notify;
	}
	
	@Override
	public abstract void prepare();

	@Override
	public void doBusiness() {
		NetProcessProxy.proxy(netEntity, new NetCallbackImplBase(notify),
				NetRequestType.POST);
	}

}
